#!/usr/bin/env python
# -*- encoding: utf-8 -*-

name = "NotExistingFile"
#name = "exception_1.txt"

try:
	f = open(name, 'r')
except IOError:
	print 'cannot open', name
else:
	print name, "has", len(f.readlines()), "lines"
	f.close()


